LassoScript Utility
Basics Browse Detail

[String->Split]

Tag Link [String->Split] Category String
Type Member Source Available No
Support Preferred Version 5.0
Change Unchanged Data Source Any
Output Type Array Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[String->Split] returns an array with elements created by splitting the string on the character specified as a parameter.

Syntax

[String Variable->(Split: 'Delimiter')]

Parameters

Required Parameters
Delimiter The delimiter for which the string should be split.

Examples

To split a string into words:

Use the [String->Split] tag. The following example shows a sentence "The quick brown fox jumped over the lazy dog." split into an array using the space character as the delimiter.

[Output: 'The quick brown fox jumped over the lazy dog'->(Split: ' ')]

(Array: (The), (quick), (brown), (fox), (jumped), (over), (the), (lazy), (dog.))

Related Tags

Category Tags